package examination;

/**
 * @author Xiao
 * @date 2021/7/10
 */
public class Test02 {
    /**
     *      水果测试类
     */
    public static void main(String[] args) {
        Fruit f1 = new Fruit("苹果",3,"斤");
        Fruit f2 = new Fruit("橘子",5,"斤");
        Fruit f3 = new Fruit("香蕉",2,"斤");
        Fruit f4 = new Fruit();
        f4.setName("榴莲");
        f4.setPrice(200);
        f4.setUnit("个");
        f1.show();
        f2.show();
        f3.show();
        f4.show();
    }
}
